package gui;

import java.awt.*;
import java.io.*;

import javax.imageio.*;
import javax.swing.*;

public class Icone extends JPanel {

	public void paintComponent(Graphics g){
	    //Image img = ImageIO.read(new File("images.jpg"));
	      java.awt.Image img = Toolkit.getDefaultToolkit().getImage("C:/Users/Martin/Desktop/COOPOO/goldUnicorn.jpg");
	      g.drawImage(img, 0, 0, this);
	      //Pour une image de fond
	      //g.drawImage(img, 0, 0, this.getWidth(), this.getHeight(), this);                
	  }               
	}